module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: 'swellpro',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=yes' },
      { hid: 'description', name: 'description', content: 'Nuxt.js project' },
      { hid: 'keywords', name: 'keywords', content: 'Swellpro' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: 'https://cdn.swellpro.cn/favicon.ico' },
      { rel: 'stylesheet', href: 'https://at.alicdn.com/t/font_582039_6nuk5gn3z68.css' },
      { rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css' }
    ]
  },
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },

  css: [
    '~/css/default.css'
  ],
  /*
  ** Build configuration
  */
  build: {
    /*
    ** Run ESLint on save
    */
    extend (config, { isDev, isClient }) {
      if (isDev && isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/
        })
      }
    }
  }
}
